package com.schoolgard.entitybean;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * PictureLog entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "PICTURE_LOG")
public class PictureLog implements java.io.Serializable {

	// Fields

	private Long id;
	private Terminal terminal;
	private Student student;
	private Date uptime;
	private String content;
	private String fullPath;
	private String remark;
	private String router;
	private Byte status;

	// Constructors

	/** default constructor */
	public PictureLog() {
	}

	/** minimal constructor */
	public PictureLog(Long id, Terminal terminal, Student student) {
		this.id = id;
		this.terminal = terminal;
		this.student = student;
	}

	/** full constructor */
	public PictureLog(Long id, Terminal terminal, Student student, Date uptime,
			String content, String fullPath, String remark, String router,
			Byte status) {
		this.id = id;
		this.terminal = terminal;
		this.student = student;
		this.uptime = uptime;
		this.content = content;
		this.fullPath = fullPath;
		this.remark = remark;
		this.router = router;
		this.status = status;
	}

	// Property accessors
	@Id
	@Column(name = "ID", unique = true, nullable = false, precision = 10, scale = 0)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "TERMINAL_GUID", nullable = false)
	public Terminal getTerminal() {
		return this.terminal;
	}

	public void setTerminal(Terminal terminal) {
		this.terminal = terminal;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "STUDENTID", nullable = false)
	public Student getStudent() {
		return this.student;
	}

	public void setStudent(Student student) {
		this.student = student;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "UPTIME", length = 7)
	public Date getUptime() {
		return this.uptime;
	}

	public void setUptime(Date uptime) {
		this.uptime = uptime;
	}

	@Column(name = "CONTENT")
	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Column(name = "FULL_PATH", length = 510)
	public String getFullPath() {
		return this.fullPath;
	}

	public void setFullPath(String fullPath) {
		this.fullPath = fullPath;
	}

	@Column(name = "REMARK", length = 510)
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "ROUTER", length = 1024)
	public String getRouter() {
		return this.router;
	}

	public void setRouter(String router) {
		this.router = router;
	}

	@Column(name = "STATUS", precision = 2, scale = 0)
	public Byte getStatus() {
		return this.status;
	}

	public void setStatus(Byte status) {
		this.status = status;
	}

}